<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="js/date.js"></script>
    <script>


         var date1 = new Date('2020-6-19 12:00:33');
         var date2 = new Date('2020-7-12 10:12:00');
         var res=chatime(date1,date2,"styles1")
         console.log(res)



      
    </script>
</body>
</html>